#!/bin/bash
set -x
mkdir /root/store/commitlog -p
mkdir /root/store/consumequeue -p

cd /opt/rocketmq
nohup sh bin/mqnamesrv &

nohup sh bin/mqbroker -n localhost:9876 &
while [ 1 == 1 ];
do
	if [ -f ~/logs/rocketmqlogs/broker.log ]; then
		tail -f ~/logs/rocketmqlogs/broker.log
		exit 0
	else
		sleep 5
	fi
done

